#ifndef __PLUGINDEMO_H__
#define __PLUGINDEMO_H__

#include "plugindemoapi.h"
#include "PluginManager/pluginBase.h"
#include "mainwindow/mainWindow.h"

namespace DemoPlugin
{
    class PLUGINDEMOAPI PluginDemo : public Plugins::PluginBase
    {
        Q_OBJECT

    private:
        GUI::MainWindow *_mainWindow{};

    public:
        PluginDemo(GUI::MainWindow *m);
        ~PluginDemo() = default;

    public:
        //插件装载
        virtual bool install() override;
        //插件卸载
        virtual bool uninstall() override;
    };

}

extern "C"
{
    void PLUGINDEMOAPI Register(GUI::MainWindow *m, QList<Plugins::PluginBase *> *plugins);
}

#endif